package itdep.domain.division;

import ga.hibernate.OrderedEnum;
import ga.i18n.Translatable;
import itdep.domain.TranslationType;

import java.util.Collection;

/**
 * @author Ivan Khalopik
 * @version $Revision: 7 $ $Date: 2010-06-13 20:21:08 +0000 (Sun, 13 Jun 2010) $
 */
public enum DepartmentType implements OrderedEnum, Translatable {
	OTHER(0, "other"),
	UNIVERSITY(1, "university"),
	FACULTY(2, "faculty"),
	ACADEMIC_DEPARTMENT(3, "academic-department");

	private TranslationType translationType = TranslationType.STANDARD;
	private String type = "department-type";
	private int order;
	private String code;

	DepartmentType(int order, String code) {
		this.order = order;
		this.code = code;
	}

	public int getOrder() {
		return order;
	}

	public String getTranslationType() {
		return type;
	}

	public String getTranslationCode() {
		return code;
	}

	public Collection<String> getTranslationVariants() {
		return translationType.getVariants();
	}
}